package com.yang.core.model;

import com.zhy.base.jpa.model.DefaultModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;


/**
 * Created by xin7k
 * Date: 2019/12/16 0016
 */
@EqualsAndHashCode(callSuper = true)
@Data
@DynamicUpdate
@DynamicInsert
@Accessors(chain = true)
@Entity(name = "qb_user")
public class User extends DefaultModel {
    /*
    * 微信OpenId
    * */
    @Column(name = "open_id")
    private String openId;

    /*
     * 用户昵称
     * */
    @Column(name = "user_name")
    private String userName;

    /*
     * 真实姓名
     * */
    @Column(name = "user_real_name")
    private String userRealName;

    /*
     * 用户头像
     * */
    @Column(name = "user_image")
    private String userImage;

    /*
     * 邮箱
     * */
    @Column(name = "email")
    private String email;

    /*
     * 性别： 1 男  ； 2  女
     * */
    @Column(name = "gander")
    private Integer gander;

    /*
     * 激活状态    0  未激活   1 激活
     * */
    @Column(name = "enable")
    private Integer enable;

    /*
     * 电话
     * */
    @Column(name = "phone")
    private String phone;

    /*
     * 密码
     * */
    @Column(name = "password")
    private String password;

    /**
     * 是否拥有店铺  0 没有   1 有
     */
    @Column(name = "is_shop")
    private Integer isShop;
}
